package com.zhijian.medical.dao.local;

import com.zhijian.medical.entity.po.NgsWkfjq3;
import com.zhijian.medical.entity.vo.request.NgsWkfjq3SearchVo;
import com.zhijian.medical.entity.vo.response.NgsWkfjq3Vo;

import java.util.List;

public interface NgsWkfjq3Mapper {
    int deleteByPrimaryKey(Long id);

    /**
     * 根据实验id删除
     *
     * @param ngsId
     * @return
     */
    int deleteByNgsId(Long ngsId);

    int insert(NgsWkfjq3 record);

    int insertSelective(NgsWkfjq3 record);

    NgsWkfjq3 selectByPrimaryKey(Long id);

    /**
     * 实验id查询po
     *
     * @param ngsId
     * @return
     */
    NgsWkfjq3 selectByNgsId(Long ngsId);

    int updateByPrimaryKeySelective(NgsWkfjq3 record);

    int updateByPrimaryKey(NgsWkfjq3 record);

    int count(NgsWkfjq3SearchVo ngsWkfjq3SearchVo);

    List<NgsWkfjq3Vo> selectList(NgsWkfjq3SearchVo ngsWkfjq3SearchVo);

    NgsWkfjq3Vo selectVoById(Long id);

    /**
     * 实验id查询vo
     *
     * @param ngsId
     * @return
     */
    NgsWkfjq3Vo selectVoByNgsId(Long ngsId);
}